package com.an.framework.security.user.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName: UserController <br/>
 * Function: 用户Controller. <br/>
 * Reason: 用户Controller. <br/>
 * date: 2017年11月9日 上午9:19:36 <br/>
 *
 * @author atc
 * @version 1.0.0
 * @since JDK 1.8
 */
@Controller
@RequestMapping("/user")
public class UserController {
	
	private static final Logger log = LoggerFactory.getLogger(UserController.class);

	@RequestMapping("login.do")
	public String login(String username,String password) {
		log.debug("登录的用户是：" + username + ",密码：" + password);
		return "login";
	}
	
	@RequestMapping("login.html")
	public String loginJsp() {
		log.debug("跳转到登录页面");
		return "framework/login";
	}
	
	@RequestMapping("login.success")
	public String loginSuccessJsp() {
		log.debug("登录成功，跳转到首页");
		return "framework/index";
	}
}

